package cn.niit.letuseatdemo.service;

import cn.niit.letuseatdemo.entity.domain.Goods;

import java.util.List;


/**
 * 用户Service接口
 *
 * @author su_fuming
 * @date 2022-10-15
 */
public interface GoodsService
{
    /**
     * 查询用户
     *
     * @param goodsId 用户主键
     * @return 用户
     */
     Goods selectGoodsByGoodsId(Long goodsId);

    /**
     * 查询用户列表
     *
     * @param goods 用户
     * @return 用户集合
     */
    public List<Goods> selectGoodsList(Goods goods);

    /**
      * @Description: 查询所有菜品列表
      * @Author: su_fuming
      * @CreateTime: 2022/10/15 13:21 Unclosed character class near index 10
    [\ [|\]|\s]
              ^
     * @return: java.util.List<cn.niit.takeout.entity.domain.Goods>
    **/

    /*
    * @Description: 查询菜品列表
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/12/7 18:19
     * @return: java.util.List<cn.niit.letuseatdemo.entity.domain.Goods>
    **/
    public List<Goods> getAllGoodsList(Goods goods);

    /*
    * @Description: 根据商家id获取菜品信息
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/12/8 4:32
     * @param: storeId
     * @return: cn.niit.letuseatdemo.entity.domain.Goods
    **/
    public List<Goods> selectGoodsByStoreId(Goods goods,Long storeId);

    /*
    * @Description: 详细菜品显示
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/12/8 4:45
     * @param: storeId
     * @param: goodsId
     * @return: cn.niit.letuseatdemo.entity.domain.Goods
    **/
    Goods selectGoodsByStoreIdAndGoodsId(Long storeId, Long goodsId);


    /*
    * @Description: 查菜品列表里的菜品类别
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/12/8 10:32
     * @param: goods
     * @param: storeId
     * @param: goodsId
     * @return: java.util.List<cn.niit.letuseatdemo.entity.domain.Goods>
    **/
    public List<Goods> selectGoodsClassifyByGoodsId(Goods goods,Long storeId,Long goodsId);

    /*
    * @Description: 根据菜品类别查菜品列表
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/12/8 10:38 
     * @param: goods
     * @param: storeId
     * @param: goodsClassify 
     * @return: java.util.List<cn.niit.letuseatdemo.entity.domain.Goods> 
    **/
    public List<Goods> selectGoodsByGoodsClassify(Goods goods,Long storeId,String goodsClassify);

    /**
     * 新增用户
     *
     * @param goods 用户
     * @return 结果
     */
    public int insertGoods(Goods goods);

    /**
     * 修改用户
     *
     * @param goods 用户
     * @return 结果
     */
     int updateGoods(Goods goods);

    /**
     * 批量删除用户
     *
     * @param goodsIds 需要删除的用户主键集合
     * @return 结果
     */
    public int deleteGoodsByGoodsIds(String goodsIds);

    /**
     * 删除用户信息
     *
     * @param goodsId 用户主键
     * @return 结果
     */
     int deleteGoodsByGoodsId(Long goodsId);

    /**
     * 修改菜品状态
     *
     * @param goods 用户
     * @return 结果
     */
    int updateGoodsStatus(Goods goods);
}
